package com.google.code.timetrail.backend;

public class Person {

	protected int illness, death, health;
	protected String name;
	
	public Person() {
		illness = 5; //percentage
		death = 5; //percentage
		health = 95; //percentage
	}
	
	public Person(String name){
		this();
		this.name = name;
	}
	/**
	 * Adds an initial bonus to the inventory, typically depending on what subclass of person 
	 * is recognized 
	 * @param inv the inventory that will receive the bonus
	 */
	public void initialBonus(Inventory inv){
	}
	
	public boolean isAlive() {
		return health > 0;
	}

	public int getIllness() {
		return illness;
	}

	public void setIllness(int illness) {
		this.illness = illness;
	}

	public int getDeath() {
		return death;
	}

	public void setDeath(int death) {
		this.death = death;
	}

	public int getHealth() {
		return health;
	}

	public void setHealth(int health) {
		this.health = health;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
